package com.brite.android.game.action;

import java.util.HashMap;

import org.anddev.andengine.entity.scene.Scene;

public class SceneManager {

	private HashMap<String, Scene> sceneManager;

	public SceneManager() {
		sceneManager = new HashMap<String, Scene>();
	}
	
	public void addScreen(String sceneID, Scene scene, boolean overwriteIfExists){
		if (sceneManager.containsKey(sceneID)) {
			if (!overwriteIfExists) {
				return;
			}else {
				sceneManager.remove(sceneID);
			}
		}
		sceneManager.put(sceneID, scene);
	}
	
	public Scene getScene(String sceneID){
		return sceneManager.get(sceneID);
	}

	public HashMap<String, Scene> getSceneList() {
		return sceneManager;
	}
	
}
